package com.sh.data.engine.repository.dao.api.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.sh.data.engine.repository.dao.base.EngineBaseModel;
import lombok.*;

import java.util.Date;

/**
 * @author : fuchen
 * @date : 2022/1/24 17:39
 */


@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
@TableName("tb_data_api_auth")
@EqualsAndHashCode(callSuper = true)
public class DataApiAuthEntity extends EngineBaseModel<DataApiAuthEntity> {

    private String userId;

    private Long apiId;

    private String apiToken;

    private String userToken;

    private String auditorId;

    private String approveReason;

    private Integer approveStatus;

    private Long projectId;

    private Date applyTime;

    private String applyReason;

    /**
     * 为方便开发，冗余apiName字段，注意维护
     */
    private String apiName;

    private String username;

}
